﻿{{include file='../frontend/include/01_head.tpl'}}
<div class="product-banner">
    <div class="gcontain l-50-pc reprefix-12 ">
        <div class="title">Contact Us - What we did?</div>
    </div>
</div>
<div class="main">
    <div class="gcontain l-50-pc reprefix-12">
        <div class="p-t-40">
            <div class="grid_7">
                <div class="intro p-b-40">
                    <div class="title"><h2>{{$cate_danhmuc->cate_title|default:'Danh mục'|escape:'html'}}</h2></div>

                    <ul class="onium" style="list-style: none">
                        <li class="aa"><span class="l-h-16">181/19, Hồng Lạc, P.10, Q.Tân Bình, TP. HCM</span></li>
                        <li class="ab">PRINTING</li>
                        <li class="ac">DESIGN &amp; BRANDING</li>
                        <li class="ad">PRODUCTION</li>
                    </ul>
                    <!--                            <div class="back m-t-32">BACK TO SERVICES</div>-->
                </div>
            </div>

            <div class="grid_17">
                <div class="intro prefix_1">
                    <div class="title">
                        <h2>Liên hệ</h2>
                    </div>
                    <div class="t-a-j p-b-40 p-t-0">
                        <form id="cont_frm" name="cont_frm" action="{{"excution"|base_url}}" method="POST" 
                            onsubmit="addcontact();return false;" 
                            target="integration_asynchronous"
                            >
                            <div class="grid_8">
                                <br>Họ và tên<br>
                                <input type="text" value="" id="cont_name" name="cont_name" class="classic-input w-280 validate[required] ">
                            </div>
                            <div class="grid_8">
                                <div class="p-l-40">
                                <br>Email<br>
                                <input type="text" value="" id="cont_mail" name="cont_mail" class="classic-input w-280 validate[required,custom[email]] ">
                                </div>
                            </div>
                            <div class="clear"></div>
                            <div class="grid_16">
                                <br>Tiêu đề<br>
                                <input type="text" value="" id="cont_subject" name="cont_subject" class="classic-input w-640 validate[required] ">
                            </div>
                            <div class="clear"></div>
                            <div class="grid_16">
                                <br>Nội dung<br>
                                <div style="padding-right: 10px">
                                    <textarea id="cont_message" name="cont_message" class="w-i m-0 p-4 r-s-v validate[required]"></textarea>
                                </div>
                            </div>
                            <div class="clear"></div>
                            <div class="p-t-12">
                                <button class="b-t-c g-d-w f-l m-r-8 ">Gửi</button>
                            </div>
                            <div class="clear"></div>
                            <div id="cont_frm_err" class="p-r erc"></div>
                            <div class="clear"></div>
                        </form>
                        <div class="clear"></div>
                    </div>
                    <div class="clear"></div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="clear"></div>
<div class="p-r">
    <div class="gcontain l-50-pc reprefix-12 ">
        <div class="foot-line"></div>
    </div>
</div>
<div class="clear"></div>
﻿{{include file='../frontend/include/02_foot.tpl'}}
<script>
    $(document).ready(function(){
        $("#cont_frm").validationEngine();
    });
    function addcontact(){
        
        if( $('#cont_frm').validationEngine('validate') === false)return false;
        $('#cont_frm_err').html('Đang xử lý...');
        new backend({
            url         :   "{{"/excution/addcontact"|base_url}}",
            data        :   $('#cont_frm').serialize(),
            callback    :   function(data){
                
                if(data.result<0){
                    $('#cont_frm_err').html(data.message);
                }else{
                    document.cont_frm.reset();
                    $('#cont_frm_err').html('Đã gửi.');
                }
                console.log(data);
            }
        }).call();
        return false;
    }
</script>